﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DomainModel.PDC
{
    public class Vehicle : IEquatable<Vehicle>
    {
        public int VehicleId { get; set; }
        public Model Model { get; set; }
        public Customer Owner{get; set;}
        public int CurrentMileage { get; set; }

        public bool IsServiceOverDue()
        {
            return false;
        }

        public Maintenance MostRecentMaintenance()
        {
            return null;
        }


        public bool Equals(Vehicle other)
        {
            if (other == null) return false;
            return ( other.VehicleId == this.VehicleId);
        }
    }
}